]> dgit.raspbian.org Git - gnome-shell.git/commit
status/brightness: Hide when proxy has no owner
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 30 Jul 2022 12:34:12 +0000 (14:34 +0200)
committerMarge Bot <marge-bot@gnome.org>
Mon, 1 Aug 2022 12:33:36 +0000 (12:33 +0000)
commit87e4eda46db625eba4388aaea9d6503ec518b594
tree50367ba1f65d3cdd8ae5002ad29a6556dabd70c2
parentfcd08fae9400799dfdfe847e2601690ca2aac77c
status/brightness: Hide when proxy has no owner

Properties are null while a proxy has no owner. Javascript helpfully
coerces that into `Number(null)` (a.k.a. 0), so we end up with a
broken slider.

Explicitly check that the value is an integer before doing the
comparison to catch that case.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2391>
js/ui/status/brightness.js